﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VehicleDD.aspx.cs" Inherits="IYAKASAPortal.LabourVerify.VehicleDD" %>

<%@ Register Assembly="gfPage" Namespace="gfPage" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>成都弥荣科技发展有限公司--调度列表</title>
    <link rel="stylesheet" href="../support/tfNiceTable/tfNiceTable.css" />
      <link rel="stylesheet" href="../support/LabourVerify_Style.css" />
    <style type="text/css">
        #mainbody tr td:nth-child(2){
            font-size:1.3em;
            font-weight:600;
        }
        #mainbody tr td:nth-child(6),#mainbody tr td:nth-child(7),#mainbody tr td:nth-child(8){
            font-weight:600;
        }
    </style>
    <script type="text/javascript" src="../support/tfNiceTable/tfNiceTable.js"></script>
    <script type="text/javascript" src="../script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="../script/layer/layer.js"></script>
    <script type="text/javascript" src="../script/LabourVerify_Tool.js"></script>
    <script type="text/javascript">
        function doAjaxShow() {
            document.getElementById("divNiceTableMessage").style.left = $(window).width / 2;// window.parent.document.getElementById("mainContentFrame").scrollWidth/2-200;
            document.getElementById("divNiceTableMessage").style.top = $(window).height / 2;//window.parent.document.getElementById("mainContentFrame").scrollHeight/2-15;

            document.getElementById("divNiceTableMessage").style.display = "block";
        }
</script>

</head>
<body  style="overflow-y: auto">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <input type="hidden" id="txtUniqueKey" name="txtUniqueKey" value="" />
                <div id="divNiceTableMessage" class="tfNiceTableMessage" style="display: none;">正在处理...</div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" style="height: 25px;">
                    <tr>
                        <td class="main_title_left"></td>
                        <td class="main_title_center">&nbsp;成都弥荣科技发展有限公司--车辆调度</td>
                        <td class="main_title_right"></td>
                    </tr>
                </table>

                
                <div runat="server" id="btnContainer" class ="y_btn_container">

                    </div>
           
            
                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="mainWidth">
                    <tr>
                        <td style="padding-left:10px;padding-right:10px; padding-top:5px;">
                            <table id="mtable" border="1" cellspacing="0"  cellpadding="3"class="dd_table">
                                <thead id="mhead">
                                 
                                </thead>
                                <tbody id="mbody">
                                  
                                </tbody>
                             
                            </table>

                      <div id="dJKMsg" style="display:none;padding:20px">
                       <table id ="tJKMsgTable" class="y_table">
                        <thead  >
                            <tr>
                                <td style="width:20%">接口名称</td>
                                <td style="width:20%">检验项目</td>
                                <td style="width:20%">时间</td>
                                <td style="width:20%">是否成功</td>
                                <td style="width:20%">操作</td>
                            </tr>
                        </thead>
                        <tbody id ="tJKMsgBody">
                           
                        </tbody>
                    </table>
                            <div id="showTxt" style="display:none;border:1px solid;padding-left:5px;padding-right:5px;background-color:antiquewhite" ></div>
                </div>
                            <br />
                        </td>
                    </tr>
                </table>
              
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
<script type="text/javascript">

    $(document).ready(function () {
        var line = getQueryString('LineNum');
        var wsImpl = window.WebSocket || window.MozWebSocket;
        var ipStr = "ws://" + GetIPStr() + ":8182";
        window.ws = new wsImpl(ipStr);

        ws.onmessage = function (evt) {
            if (!checkNum(line)) {
                line = 1;
            }
            if (evt.data != "") {
                var obj = eval('(' + evt.data + ')');
                if (obj.LineNum == line) {
                   RefreshTable(obj);
                   ws.send("dd_"+line);
                }

            }
        };  
    });



</script>